﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_GetTaskComment]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_GetTaskComment];
GO
CREATE PROCEDURE [dbo].[sproc_GetTaskComment]
    @TaskID int   

As

select * from uds_task_comment where taskID=@TaskID order by submittime desc